using System.IO;
using System.Net;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;

namespace NoASP
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var config = new ConfigurationBuilder()
                              .AddCommandLine(args)
                              .Build();

			var host = new WebHostBuilder()
						.UseKestrel()
						.UseConfiguration(config)
						.UseContentRoot(Directory.GetCurrentDirectory())
						.UseIISIntegration()
						.UseStartup<Startup>()
						.Build();

			host.Run();
        }
    }
}

